<template>
    <h1>{{msg}}</h1>
    <input type="text" ref="inputDom" value="ref使用例子">
    {{plusone}}
</template>

<script setup lang="ts">
import { computed, onMounted, ref } from 'vue';


defineProps({
    msg:String
})
// const msgcopy = propsData(msg)
const inputDom = ref(null)
const plusone = computed(()=> msg +='1')
console.log('plusone:',plusone,plusone.value)
onMounted(() => {
    console.log('ni',inputDom.value)
})
</script>